
function onHisListSucc(re){
	
}

function renderItem(colName,text,indexStr,mItem){
	switch(colName){
	case "type":
		return $('#logisticsTypeDiv').find('option[value="'+text+'"]').text();
	case 'vector':
		return text=='01'?'公司至客户':'客户至公司';
	case 'receiverState':
		return text=='01'?'已收货':'未收货';
	case 'operate':
		return '<a href="javascript:void(0)" title="详细信息" class="detailBtn">'+
			'<i class="icon icon-newspaper-o"></i></a>';
	}
}

function afterReady(){
	$('.detailBtn').click(function(e){
		e.stopPropagation();
		e.preventDefault();
		var num = $(this).parents('tr').index();
		var record = logisHisTable.records[num].data;
		var url = ctx + "/yzj/orderLogistics/logisDetail/"+record.logisId;
		MsgBox.open("logisticsDetail", "物流详情", url, "900px");
	});
}

function initTable(){
	queryHisPage.send();
}

function initType(){
	var type = $('#typeDiv').text();
	var val = $('#logisType').find('option[value="'+type+'"]').text();
	$('#typeDiv').text(val);
}